// 01 导入request
import request from "../utils/request";
// 03 获取员工接口
export const GetStaff = params=>request.get("/api/staff",{params})
// 获取角色的接口
export const GetRole = params=>request.get("/api/user_group",{params})
// 添加员工
export const AddStaff = data=>request.post("/api/staff",data);
// 修改员工
export const UpdateStaff = data=>request.put("/api/staff",data);
// 删除员工
export const DelStaff = id=>request.delete("/api/staff/"+id);

export const CountStaff = ()=>request.get("/api/countStaff");
export const CountAll = ()=>request.get("/api/countAll");


// 获取价格接口
export const Getprice = (params)=>request.get('/api/price',{params});
// 获取场馆
export const GetStadium = (params)=>request.get('/api/stadium',{params});
// 删除价格接口/api/price/{id}
export const DelPrice = id=>request.delete("/api/price/"+id);

// 修改价格
export const PostPrice = data=>request.put("/api/price",data);
// 获取运动类型

export const GetSport = (params)=>request.get('/api/sport',{params});


// 批量修改添加价格
// /api/price_batch
export const PutPrice = data=>request.post('/api/price_batch',data);

// 01 导入request
// import request from "../utils/request";
// 03 获取员工接口
// export const GetStaff = params=>request.get("/api/staff",{params});
// // 获取角色的接口
// export const GetRole = params=>request.get("/api/user_group",{params})
// 添加员工
// export const AddStaff = data=>request.post("/api/staff",data);
// 修改员工
// export const UpdateStaff = data=>request.put("/api/staff",data);
// 删除员工
// export const DelStaff = id=>request.delete("/api/staff/"+id);
//获取角色接口
// export const GetRole = params=>request.get("/api/user_group",{params});
//添加角色
export const AddRole = data=>request.post("/api/user_group",data);
//修改角色
export const UpdateRole = data=>request.put("/api/user_group",data);
//删除角色
export const DelRole = id=>request.delete("/api/user_group/"+id);
//获取公司信息
export const GetCompany = params=>request.get("/api/company",{params});
//获取结算帐号
export const GetPayment = params=>request.get("/api/payment_count",{params});
//添加结算账号
export const AddPayment = data=>request.post("/api/payment-count",{data});
